<?php
namespace app\manage\validate;

class ApiCate extends BaseValidate
{
    // 验证规则
    protected $rule = [
        'name' => ['length' => '2,25'],
        'glyphicons' => ['length' => '2,50'],
        'action' => ['length' => '2,25'],
        'ver' => ['length' => '2,25'],
    ];
    // 验证消息
    protected $message = [
        'name.length' => 'api名字必须在2-25个字符之间',
        'glyphicons.length' => '图标类名必须在2-50个字符之间',
        'action.length' => 'action必须在2-25个字符之间',
        'ver.length' => 'ver必须在2-25个字符之间',
    ];
}